/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package local;

import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
import javax.ejb.Local;
import model.Theme;
import model.ThemeScore;

/**
 *
 * @author karennyq
 */
@Local
public interface ThemeFacadeLocal {

    public Theme updateTheme(Long theme_id, String name, String short_desc, String firm_qns, String ind_qns);

    public Theme getTheme(Long theme_id);

    public ArrayList<Theme> getThemes(Long industry);

    public Collection<Theme> findThemeByIndustry(Long industryId);

    public void edit(model.Theme t);

    public List<Collection<ThemeScore>> getThemeScoreList(String indID);

    public int getThemeScore(String rankType, String themeID, List<Collection<ThemeScore>> tsList);

    public int getThemeResponse(String rankType, String themeID, List<Collection<ThemeScore>> tsList);

    public LinkedHashMap<String, Double> getThemeScoreTable(String indID, String rankType);

    public double getAvgScore(String themeID, List<Collection<ThemeScore>> tsList);

    public int getAvgScoreResponse(String themeID, List<Collection<ThemeScore>> tsList);

    public LinkedHashMap<String, Double> getThemeAvgScoreTable(String indID);

    public Theme find(Long theme_id);
}
